Xbasic

PROPERTY_FROM_BLOB_EXTRACT Function

Syntax

result as c = property_from_blob_extract( data as b, property_name as c )

Arguments

data

Binary data created using property_to_blob.

property_name

Name of single property to extract.

Description

Allows a single property in a binary object created with property_to_blob().

Discussion

The PROPERTY_FROM_BLOB_EXTRACT() function allows a single property in a binary object created with property_to_blob(). If all you need to extract is a single property, and there are lots of properties stored in the binary image, calling this function will generally be faster.

Example

dim prop1.name as c  = "joe"
dim prop1.address as c  = "park ave, New york city"
dim prop1.state as c = "NY"
dim data as b = property_to_blob(prop1)
? property_from_blob_extract(data,"name")
= "joe"

See Also